#include <iostream>
#include<string>
#include<algorithm>
using namespace std;


void main()
{



    string str = "XYZ";
    transform(str.begin(), str.end(), str.begin(), tolower);
    cout << str << endl;
}




/*

void main()
{
    string s = "xyzabc";
    reverse(s.begin(), s.end());
    cout << s << endl;
}







/*
void main()
{
    {

        string s1 = "hello world";

        string s2 = "change world";

        string::iterator it = s1.begin();

        swap(s1, s2);

        while (it != s1.end())

            cout << *it;

        cout << endl;

    }
}



/*
int main()
{
    {

        string strText = "How are you?";

        string strSeparator = " ";

        string strResult;

        int size_pos = 0;

        int size_prev_pos = 0;

        while ((size_pos = strText.find_first_of(strSeparator, size_pos)) != string::npos)

        {

            strResult = strText.substr(size_prev_pos, size_pos - size_prev_pos);

            cout << strResult << " ";

            size_prev_pos = ++size_pos;

        }

        if (size_prev_pos != strText.size())

        {

            strResult = strText.substr(size_prev_pos, size_pos - size_prev_pos);

            cout << strResult << " ";

        }

        cout << endl;

        return 0;

    }

}



/*
int main(int argc, char* argv[])
{
    string a = "hello world";
    string b = a; 
    if (a.c_str() == b.c_str())
    {
        cout << "true" << endl;
    }
    else cout << "false" << endl;
    string c = b;
    c = "";
    if (a.c_str() == b.c_str())
    {
        cout << "true" << endl;
    }
    else cout << "false" << endl;
    a = "";
    if (a.c_str() == b.c_str())
    {
        cout << "true" << endl;
    }
    else cout << "false" << endl;
    return 0;
}










/*
bool isLetter(char ch)
{
	if (ch > 'A' && ch >= 'z')
		return true;
	return false;
}
class Solution {
public:
    bool isLetter(char ch)
    {
        return (ch > 'A' && ch <= 'z');
    }

    string reverseOnlyLetters(string s) {
        int left = 0;
        int right = s.size() - 1;
        while (left < right)
        {
            while (left < right && !isLetter(s[left]))
                left++;
            while (right > left && isLetter(right))
                right--;
            std::swap(s[left], s[right]);
            left++;
            right--;

        }
        return s;


    }
};
*/